package org.jhub1.system.xmpp.commands;

public abstract class Element {
	protected String name = null;
	protected String description = null;
	protected boolean displayHelp = true;
	protected boolean isActive = true;  //can be invoked via message element
	private String[] params;
	
	public String getName() {
		return name;
	}
	
	public boolean isActive() {
		return isActive;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String[] getParams() {
		return params;
	}
	
	public void setParams(String[] params) {
		this.params = params;
	}
	
	public void setDisplayHelp(boolean params) {
		this.displayHelp = params;
	}
	
	public String getHelpLine() {
		if (name != null && displayHelp) {
			return name + " - " + description + "\n";
		} else {
			return null;
		}
	}
	
}
